package file;

import java.io.File;
import java.io.IOException;

public class Demo4 {
    public static void main(String[] args) throws IOException {
        File file = new File("./test");
        file.mkdir();
        File newfile = new File("./src/test");
        boolean result = file.renameTo(newfile);
        System.out.println(result);
    }
}
